import { createApp } from 'vue'
import { createPinia } from "pinia";
import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
import i18n from '@/i18n/index';
import './style.css'
import App from './App.vue'
import router from "./router/index"
// import ElementPlus from "element-plus"
import "element-plus/dist/index.css"
// 初始化css，重置css默认样式
import "normalize.css/normalize.css";
// 全局css
import "@/styles/index.scss";
import 'virtual:svg-icons-register'
// 引入icon插件
import initSvgIcon from "@/icons/index";
import "virtual:svg-icons-register";

import VXETable from 'vxe-table'
import 'vxe-table/lib/style.css'

// 注册element-plus
import installElementPlus from "./plugins/element";

createApp(App)
.use(createPinia()
.use(piniaPluginPersistedstate))
.use(installElementPlus)
.use(router)
.use(initSvgIcon)
.use(i18n)
.use(VXETable)
.mount('#app')